<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="OrderNavCtrl"></ul>

<style type="text/css">
    .set_cont.list_page .list_table th{width:auto;}
    .set_cont.list_page .list_table td{ width:auto;}
</style>

<div class="set_box">
    <h1 class="set_title"><!--订金退款单-->{{language.TIPS_CASHIER_DEPOSITRETURN_RECORD}} 
    	<span class="title_btn_group"> 
            <a class="title_btn"  href="javascript:void(0);" ng-click="search();" ><!--查询-->{{language.ACT_INQUIRE}}</a> 
        </span>
   </h1>
    <div class="set_cont list_page" >
        <table class="list_table">
            <thead>
                <tr>
                    <th><!--单据编号-->{{language.TIPS_INVENTORY_DOC_CODE}}</th>
                    <th><!--订金单号-->{{language.TIPS_DEPOSIT_RECORD_CODE}}</th>
                    <th><!--顾客姓名-->{{language.TIPS_CUSTOMER_NAME}}</th>
                    <th><!--手机-->{{language.TIPS_TEL}}</th>
                    <th><!--退款金额-->{{language.TIPS_CASHIER_REFUNDS_MONEY}}</th>
                    <th><!--经手店员-->{{language.TIPS_FIX_DIANYUAN}}</th>
                    <th><!--确认-->{{language.ACT_CONFIRM}}</th>
                    <th><!--来源类型-->{{language.TIPS_SOURCE_TYPE }}</th>
                    <th><!--离线-->{{language.TIPS_OFFLINE}}</th>
                </tr>
            </thead>
            <tbody ng-repeat="i in orderReturn_list| orderBy:'key':true">
                <tr class="date_num">
                    <td class="date" colspan="8"><!--日期-->{{language.TIPS_INVENTORY_DATE}}：{{i.key}}</td>
                    <td class="num"><span>{{i.value.length}}</span></td>
                </tr>
                <tr class="list_unit"  ng-repeat="depositReturn in i.value track by $index" >
                    <td><a ng-href="#/order/service/depositReturnRecord_detail/{{depositReturn.record_code}}">{{depositReturn.record_code}}</a></td>
                    <td>{{depositReturn.deposit_record_code}}</td>
                    <td>{{depositReturn.customer_name}}</td>
                    <td>{{depositReturn.phone}}</td>
                    <td>{{depositReturn.return_money}}</td>
                    <td>{{depositReturn.user_name}}</td>
                    <td>{{depositReturn.is_sure | tk_status}}</td>
                    <td>{{depositReturn.relation_type | relation_type}}</td>
                    <td>{{depositReturn.is_online | tk_status}}</td>
                </tr>
            </tbody>
        </table>
        <div class="btn_more"><!--更多--><button class="btn" ng-click='scoll.nextpage();' ng-show="buttonMore == 1"></button></div>
    </div>
</div>
